package com.czq.gulimail.gulimailproduct.feign;

import com.czq.common.to.MemberPriceTo;
import com.czq.common.to.SkuFullReductionTo;
import com.czq.common.to.SkuLadderTo;
import com.czq.common.to.SpuBoundTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimail-coupon")
public interface CouponFeignService {


    @RequestMapping("/gulimailcoupon/spubounds/save")
    void saveBound(@RequestBody SpuBoundTo spuBoundTo);


    @RequestMapping("/gulimailcoupon/skuladder/save")
    void saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/gulimailcoupon/skufullreduction/save")
    void saveSkuReductionTo(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @RequestMapping("/gulimailcoupon/memberprice/saveBatch")
    void saveMemberPriceTo(@RequestBody List<MemberPriceTo> memberPriceTos);
}
